//
//  NetworkTools.h
//  测试AFNetworking
//
//  Created by 伍银荣 on 2021/12/20.
//  Copyright © 2021 com.WYR. All rights reserved.
//

#import "AFHTTPSessionManager.h"

NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSUInteger, RequestMethod) {
    GET,
    POST
};

@interface NetworkTools : AFHTTPSessionManager

+ (instancetype)sharedTools;

//- (void)requestWithUrlString:(NSString *)URLString parameters:(id)param headers:(NSDictionary <NSString *, NSString *> *)headers progress:(void (^)(NSProgress *downloadProgress))downloadProgress finished:(void(^)(id result, NSError *error))finished;

- (void)requestWithMethod:(RequestMethod)method UrlString:(NSString *)URLString parameters:(id)param headers:(NSDictionary <NSString *, NSString *> *)headers progress:(void (^)(NSProgress *downloadProgress))progress finished:(void(^)(id result, NSError *error))finished;
@end

NS_ASSUME_NONNULL_END
